using System;
using System.Collections.Generic;
using Domain.Model.Partners;

namespace Domain.Model.Nomenclatures
{
    public class Nomenclature
    {
        public Nomenclature()
        {
            Stocks = new HashSet<Stock>();
            Prices = new HashSet<Price>();
        }

        public System.Guid ID { get; set; }
        public int Code { get; set; }
        public NomenclatureType Type { get; set; }
        public NomenclatureCategory Category { get; set; }
        public string Name { get; set; }
        public string FullName { get; set; }
        public string Description { get; set; }
        public UnitOfMeasure UnitOfMeasure { get; set; }
        public int VAT { get; set; }

        public Nullable<System.DateTime> CreatedOn { get; set; }
        public Nullable<System.DateTime> UpdatedOn { get; set; }

        public virtual ICollection<Price> Prices { get; set; }
        public virtual ICollection<Stock> Stocks { get; set; }

        #region ToString Implementation
        public override string ToString()
        {
            return Name;
        }  
        #endregion
    }
}